package br.edu.fanor.esfinge.services.impl;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import br.edu.fanor.esfinge.entity.Timeline;
import br.edu.fanor.esfinge.services.TimelineServiceRemote;

@Stateless
public class TimelineServiceImpl implements TimelineServiceRemote{

	@PersistenceContext(unitName="esfinge")
	private EntityManager em;
	
	@Override
	public Timeline inserir(Timeline timeline) {
		
		em.persist(timeline);
		
		return timeline;
	}

}
